# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-complexheatmap
pkgver=1.6.4
pkgrel=1
pkgdesc="A Python package to plot complex heatmap (clustermap)"
url="https://github.com/DingWB/PyComplexHeatmap"
arch="noarch"
license="MIT"
depends="python3 py3-matplotlib py3-numpy py3-pandas py3-seaborn"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/P/PyComplexHeatmap/PyComplexHeatmap-$pkgver.tar.gz"
builddir="$srcdir/PyComplexHeatmap-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

# no tests provided by the upstream; use smoke test for now
check() {
	PYTHONPATH=build/lib python3 -c "from PyComplexHeatmap import *"
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
16f91fffabff12e3b066087838c0d3562b500aecec53f5185b6b90903296a5acbb075704c8fbcb85fd9eab47b4351c6fb4830eb7cef2201f66c2ed6c3780fd1e  py3-complexheatmap-1.6.4.tar.gz
"
